package com.hainingtong.user.dto;

import com.hainingtong.user.dto.group.DefaultGroup;
import com.hainingtong.user.dto.group.PhoneCodeGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel("微信小程序注册账号")
@Data
public class RegisterUserMiniCode {
    @ApiModelProperty("微信返回的code")
    @NotNull(message = "code不能为空")
    private String code;

    @ApiModelProperty("昵称")
    @NotNull(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty("性别")
    @NotNull(message = "性别不能为空")
    private int gender;

    @ApiModelProperty("头像")
    @NotNull
    private String avatar;

}
